Skip to content

Conversation

@charles-p-howe
Copy link

To keep developer changes to a minimum, this should not require any changes to continue using.

If no changes are made goquery will set sslmode=disable as the default

If a dev wants to explicitly set the sslmode, set it either via the RdbmsConfig type declaration:
dbconfig := gq.RdbmsConfig{ Dbuser: Dbuser, Dbpass: Dbpass, Dbport: Dbport, Dbhost: Dbhost, Dbname: Dbname, DbSSLMode: "prefer", DbDriver: "pgx", DbStore: "pgx", }
Or via the RdbmsConfigFromEnv() by using the DBSSLMODE env variable.

Currently accepted sslmodes:

  • disable
  • allow
  • prefer
  • require
  • verify-ca
  • verify-full

If a sslmode is sent not in the above list, it will log a warning and set the sslmode to disable.

…ill default to disable, if an invalid sslmode is entered, it will be set to disable, otherwise if a valid sslmode is set, it will be used for pgx connections. user of the module will be responsible for any cert installation or needs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant